Skip to main content

revXMLDeleteNode

Type​

command

Summary​

Removes a node from an XML tree.

Syntax​

revXMLDeleteNode <treeID>, <nodeToDelete>

Description​

Use the revXMLDeleteNode command to remove part of an XML tree you're working with.

Important

The revXMLDeleteNode command is part of the XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters​

NameTypeDescription

treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

nodeToDelete

The path to the node you want to remove.

Examples​

revXMLDeleteNode 3,"/Works/Books/Fiction"
revXMLDeleteNode line 3 of theTrees,currNodePath

Value​

NameTypeDescription

the result

If the revXMLDeleteNode command encounters an error, the result is set to an error message beginning with "xmlerr".

glossary: node, Standalone Application Settings, standalone application, XML tree, command, LiveCode custom library

library: XML library

message: revEndXMLNode, revStartXMLNode

command: revXMLAddNode, revXMLDeleteTree, revXMLPutIntoNode

function: revXMLRootNode, revXMLNodeContents, result

Compatibility and Support​

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?